import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity()
export class Logininfor {
  @PrimaryGeneratedColumn({
    name: "info_id",
    comment: "访问id",
  })
  infoId: number;

  @Column({
    name: "user_name",
    comment: "用户账号",
    length: 50,
    default: "",
  })
  userName: string;

  @Column({
    name: "idaddr",
    comment: "登录ip地址",
    length: 128,
    default: "",
  })
  ipaddr: string;

  @Column({
    name: "login_location",
    comment: "登录地点",
    length: 255,
    default: "",
  })
  loginLocation: string;

  @Column({
    name: "login_time",
    comment: "访问时间",
    type: "datetime",
  })
  loginTime: string;
}
